﻿Public Class Register

    Private Sub Register_New_User() Handles btnOK.Click
    End Sub
    Private Sub Cancel_Click() Handles btnCancel.Click
        Me.Close()
    End Sub
    Private Sub Register_Load() Handles MyBase.Load
        Me.BackColor = details.backcolor
    End Sub
    Private Sub Check_Passwords_Match() Handles txtrepeatpass.TextChanged
        If txtrepeatpass.Text = txtPassword.Text Then
            btnOK.Enabled = True
        Else
            btnOK.Enabled = False
        End If
    End Sub
    Private Sub Check_Passwords_Match_1() Handles txtPassword.TextChanged
        If txtrepeatpass.Text = txtPassword.Text Then
            btnOK.Enabled = True
        Else
            btnOK.Enabled = False
        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.Close()
    End Sub
End Class
